// MyModule.java
import com.google.inject.AbstractModule;

public class MyModule extends AbstractModule {
    @Override
    protected void configure() {
        // 将 EmailService 接口绑定到 EmailServiceImpl 实现类
        bind(EmailService.class).to(EmailServiceImpl.class);
    }
}